﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BBPA.Admin.Default" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <%--<meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />--%>
    <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <%--MLGBIE--%>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="apple-touch-icon-precomposed" href="/images/apple-touch-icon.png" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="Bookmark" href="favicon.ico" />
    <title>BBPA</title>
    <%--JS--%>
    <script type="text/javascript" src="/js/JQUERY/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="/js/JQUERY/bootstrap.min.js"></script>
    <script type="text/javascript" src="/js/JQUERY/google.fastbutton.js"></script>
    <script type="text/javascript" src="/js/JQUERY/jquery.google.fastbutton.js"></script>
    <script type="text/javascript" src="/js/JQUERY/jquery.fix.clone.js"></script>
    <script type="text/javascript" src="/js/js.js"></script>

    <script type="text/javascript" src="/js/tempo.min.js"></script>
    <script type="text/javascript" src="/ckfinder/ckfinder.js"></script>
    <script type="text/javascript" src="/js/ckfinder.js"></script>
    <script type="text/javascript" src="/js/imgready.js"></script>
    <script type="text/javascript" src="/js/picshow.js"></script>
    <script type="text/javascript" src="/js/default.js"></script>
    <%--下拉--%>
    <script type="text/javascript" src="/js/JQUERY/select2.js"></script>
    
<script src="/js/DDL_Category_col.js"></script>
    <%--CSS--%>
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/css/reset-bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/css/todc-bootstrap.css" />
    <link rel="stylesheet" href="/css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="/css/picshow.css" />
    <link rel="stylesheet" type="text/css" href="/css/basic.css" />
    <link rel="stylesheet" type="text/css" href="/css/css.css" />

    <link rel="stylesheet" type="text/css" href="/css/default.css" />
    <link rel="stylesheet" type="text/css" href="/css/default_table.css" />
    <link rel="stylesheet" type="text/css" href="/css/default_mobile.css" />
    <%--下拉--%>
    <link rel="stylesheet" type="text/css" href="/css/JQUERY/select2.css" />
</head>
<body style="background-image: url(/img/bg.png); overflow-y: hidden; position:absolute;left:0;top:0;right:0;bottom:0;">
    <!--黑板-->
    <div id="BlackBoard" class="fixed-top"></div>
    <!--大图-->
    <div id="PicShow_PicBox" style="position:absolute; background-color:#ff6600;">
        <img />
    </div>
    <!--大图翻页-->
    <i id="ShowPre" class="fa fa-chevron-left fixed-top"></i><i id="ShowNext" class="fa fa-chevron-right fixed-top"></i>
    <!--大图关闭-->
    <h2 id="PicShow_closer" class="fa fa-times fixed-top PageControl"></h2>


    <div id="popover" class="popover fade right in" data-zindex="1">
        <div id="popover_top">
            <i class=" fa fa-times PageControl pull-right"></i>
            <h3 class="popover-title nowrap"></h3>
        </div>
        <div class="arrow"></div>
        <div id="frame_popover_Box">
            <div class="scrollBox4ios">
                <iframe id="frame_popover" scrolling="auto" frameborder="0" style="border: 0;"></iframe>
            </div>
        </div>
    </div>

    <div id="admin_list_search">
        <form id="admin_list_search_form">
            <div id="search_closer" class="fa fa-times PageControl close"></div>
            <h3 id="title_search" class="">检索</h3>

            <div id="admin_list_search_Form" target="frame_list"></div>
            <button onclick="search_submit();return false;" class="btn btn-primary"><i class="fa fa-search icon-white"></i></button>
            <button onclick="search_default();return false;" class="btn pull-right">初始化</button>
        </form>
    </div>
    <form id="form1" runat="server" style="">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div id="div_default" runat="server" visible="false">
                    <div id="loading">载入中……</div>
                    <div id="logo1" style="display: none;  background-repeat: no-repeat; width: 500px; height: 200px; position: absolute; top: 35%; margin-top: -100px; margin-left: -250px; z-index: 0;" runat="server"></div>
                    <div id="admin_left" class="scrollBox4ios">
                        <asp:Repeater ID="rp_Menu" runat="server" OnItemDataBound="rp_Menu_ItemDataBound">
                            <ItemTemplate>
                                <div class="left_menu  <%#((IList)Eval("ListMenuSon")).Count==0?"nomenuson":"" %>">
                                    <div <%#((bool)Eval("MenuTopic.IsHrefRight"))?"href-right":"href-list" %>="<%#Eval("MenuTopic.Href") %>" title="<%#Eval("MenuTopic.Title") %>" class="left_menu_title">
                                        <div class="left_menu_title_">
                                            <div class="left_menu_title_kaiguan">
                                                <div></div>
                                            </div>
                                            <div class="left_menu_title_con"><%#Eval("MenuTopic.Html") %></div>
                                        </div>
                                    </div>
                                    <ul>
                                        <asp:Repeater ID="rp_ListMenuSon" runat="server">
                                            <ItemTemplate>
                                                <li data-template-for="b" <%#((bool)Eval("IsHrefRight"))?"href-right":"href-list" %>="<%#Eval("Href") %>" title="<%#Eval("Title") %>" class="left_menu_title_">
                                                    <div class="left_menu_title_con"><%#Eval("Html") %></div>
                                                </li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                    <div id="admin_list" class="" style="overflow: hidden;">
                        <div id="admin_bottom_M_bg" class="hidden_T"></div>
                        <div id="admin_bottom_M" class="hidden_T"><i class="fa fa-bars fa-2x"></i><i class="fa fa-home fa-2x pull-right"></i></div>
                        <div class="ListBox ing">
                            <div class="scrollBox4ios">
                                <iframe frameborder="0" target="self" name="frame_list" scrolling="auto" allowtransparency="true" class="ListIframe"></iframe>
                            </div>
                            <div class="ListBox_Top_bg"></div>
                            <div class="ListBox_Top">
                                <div class="List_bt_goBack inlineblock fa fa-arrow-left PageControl Goback"></div>
                                <h3 class="ListTitle"></h3>
                                <span class="ListCount">数量<b></b></span>
                                <div class="Top_Control_Box form-inline"></div>
                                <div onclick="open_search();return false;" class="search_opener" quanxian="search" data-toggle="tooltip" data-placement="top" data-original-title="检索"><%--<i class="fa fa-search fa-2x"></i>--%><span style="font-weight:bold; color:blue; font-size:17px;font-family:'黑体';">高级搜索</span></div>
                            </div>

                        </div>
                    </div>
                    <div id="admin_right" class="shadow_left fixed-right">
                        <div id="close_right" class="fa fa-times PageControl close"></div>
                        <h3 id="title_right" class="nowrap"></h3>
                        <div class="scrollBox4ios">
                            <iframe frameborder="0" id="frame_right" scrolling="auto" allowtransparency="true"></iframe>
                        </div>
                    </div>
                    <div id="PublicTimerBox" class="inlineblock hide">
                        <div style="text-align: right;">
                            <h4><asp:Label ID="lb_Username" runat="server" Text="lb_Username"></asp:Label></h4>
                            <span id="span_Number" runat="server">编号：<asp:Label ID="lb_Number" runat="server" Text=""></asp:Label></span>
                        </div>
                        <asp:UpdatePanel ID="up_PublicTimer" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <div id="me_info">
                                    <div id="UserType_Store" runat="server" visible="false">
                                        <a href="###" href-right="/store/orders/form.aspx" title="本周订单"><i class="fa fa-shopping-cart"></i>本周订单：<%=Count_Orders_Goods_WaitMoney %></a>
                                    </div>
                                    <div id="UserType_Supplier" runat="server" visible="false">
                                        <a href="###" href-list="/supplier/Orders_Goods/delivery/list_waitcheck.aspx" title="等待点货的商品"><i class="fa fa-shopping-cart"></i>需要点货：<%=Count_Supplier_Delivery_waitChcek %></a><br />
                                        <a href="###" href-list="/supplier/Orders_Goods/delivery/list_hascheck.aspx" title="今天已点货商品"><i class="fa fa-shopping-cart"></i>今日已点货：<%=Count_Supplier_Delivery_hasChcek %></a>
                                    </div>
                                    <div id="UserType_Admin" runat="server" visible="false">
                                        <h5>商品</h5>
                                        <a href="###" href-list="/sys/goods/list.aspx?search_radio_state=2" title="待审核商品">待审核商品：<%=Count_Goods_WaitCheck %></a><br>
                                        <a href="###" href-list="/sys/Goods_BuyPrice_Log/list_WaitRead.aspx" title="进价变动">进价变动：<%=Count_BuyPrice_Log_WaitRead %></a><br>
                                        <a href="###" href-list="/sys/Goods_SellPrice_Log/list_WaitRead.aspx" title="售价变动">售价变动：<%=Count_SellPrice_Log_WaitRead %></a><br>
                                        <h5>联盟商家</h5>
                                        <a href="###" href-list="/sys/supplier/list.aspx?search_radio_state=2" title="待审核供货商">待审核供货商：<%=Count_Supplier_WaitCheck %></a><br>
                                        <a href="###" href-list="/sys/store/list.aspx?search_radio_state=2" title="待审核孕婴店">待审核孕婴店：<%=Count_Store_WaitCheck %></a><br>

                                        <a href="###" href-list="/sys/applydraw/list.aspx" title="提款申请">提款申请：<%=Count_ApplyDraw_Wait %></a><br>
                                        <a href="###" href-list="/sys/store/list.aspx?search_radio_pafeeenddate=1" title="联盟费到期孕婴店">联盟费到期：<%=Count_Store_PAFeeEndDate %></a><br>
                                    </div>
                                    <%-- 等待发货：<a href="###" href-list="../win/List.aspx?search_radio_state=2"><%=Count_Win_WaitSend %></a>--%>

                                    <div class="hide">
                                        <asp:Timer ID="timer_Public" runat="server" Enabled="False" Interval="5000" OnTick="timer_Public_Tick"></asp:Timer>
                                        <asp:TextBox ID="tb_SMSid_readed" runat="server" CssClass="hide"></asp:TextBox>
                                        <asp:TextBox ID="tb_SMSid_setState1" runat="server" CssClass="hide"></asp:TextBox>
                                        <asp:Button ID="bt_SMSid_setState1" runat="server" Text="Button" CssClass="hide" OnClick="bt_SMSid_setState1_Click" />


                                        <asp:Button ID="bt_Timer1" runat="server" Text="" OnClick="bt_Timer1_Click" />
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <asp:Button ID="bt_logOut" runat="server" Text="" OnClick="bt_logOut_Click" CssClass="hide" />
                    </div>
                    <div id="ckFinderBox">
                        <div id="ckFinder_close" class="fa fa-times PageControl close"></div>
                        <h3 id="ckFinder_title"></h3>
                        <div id="ckFinder_con"></div>
                    </div>
                </div>
                <div id="div_login" runat="server" visible="false">
                    <div id="login_div_logo"></div>
                    <img class="loginline" src="/img/loginline.png"></img>
                    <div id="login_table_Box">
                        <div class="control-group">
                            <label class="control-label" for="num">账号：</label>
                            <div class="controls">
                                <asp:TextBox ID="tb_username" runat="server" CssClass="input"></asp:TextBox>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="num">密码：</label>
                            <div class="controls">
                                <asp:TextBox ID="tb_password" runat="server" CssClass="input" TextMode="Password"></asp:TextBox>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="num"></label>
                            <div class="controls">
                                <asp:Button ID="bt_submit" runat="server" CssClass="btn btn-primary btn-submit"
                                    Text="登录" OnClick="bt_submit_Click" />
                            </div>
                        </div>

                    </div>
                    <img class="loginline" src="/img/loginline.png"></img>
                </div>
                <div id="Homepage_bg"></div>
            </ContentTemplate>
        </asp:UpdatePanel>

    </form>
    <div id="NewSMS">
        <div class="hide NewSMS_item">
            <div class="hide NewSMS_item alert alert-error">
                <button type="button" class="close fa fa-times" data-dismiss="alert"onclick="closeSMS(this)" >X</button>
                {{TheContent}}
                <div class="muted"><small>{{Dateandtime}}</small></div>
                <div style="text-align: right;">

                </div>
            </div>
        </div>
    </div>
</body>
<script>
    function NewSMS(listSMS) {
        for (var i = 0; i < listSMS.length; i++) {
            var thisSMS = listSMS[i];
            var _clone = $("#NewSMS .NewSMS_item:hidden:last").clone().attr("data-id", thisSMS.id);
            var _Dateandtime=JsonDate(thisSMS.Dateandtime);
            _clone.html(_clone.html().replace("{{TheContent}}", thisSMS.TheContent).replace("{{Dateandtime}}", _Dateandtime.format("yyyy-MM-dd hh:mm") ));
            _clone.prependTo("#NewSMS").fadeIn();
        }
    }
    function closeSMS(w_) {
        var w = $(w_).parents(".NewSMS_item");
        w.css({ opacity: 0 }).slideUp(function () { w.remove(); })
        $("#tb_SMSid_setState1").val(w.attr("data-id"));
        $("#bt_SMSid_setState1").click();
    }
    function openSMS(w_) {
        var w = $(w_).parents(".NewSMS_item");
        w.css({ opacity: 0 }).slideUp(function () { w.remove(); })
        open_frameRight("win/send.aspx?id=" + w.attr("data-id"), "送奖品给" + w.attr("data-realname") + "");
    }
</script>
</html>
